#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
void print(unsigned int a)
{
	if ( a>=9)
	{
		print( a/ 10);
	}
	printf("%d ", a%10);
}
int main()
{
	unsigned int mun = 0;
	scanf_s("%d", &mun);
	print(mun);
	return 0;

}